package org.keco.shape;

import java.awt.Component;
import java.awt.Graphics;

public class Arc extends Component {

	private static final long serialVersionUID = -8030335647179654633L;

	private Point center;
	private int radius;
	private int startAngle;
	private int angleLength;

	public Arc(Point center, int radius, int startAngle, int angleLength) {
		this.center = center;
		this.radius = radius;
		this.startAngle = startAngle;
		this.angleLength = angleLength;
	}

	@Override
	public void paint(Graphics g) {
		g.drawArc(center.getX(), center.getY(), radius, radius, startAngle, angleLength);
	}
}
